﻿using System.Text;
using Sandbox.ModAPI;

namespace Vicizlat.MultifloorCargoElevator
{
    public partial class MultifloorCargoElevator
    {
        private void AppendingCustomInfo(IMyTerminalBlock block, StringBuilder stringBuilder)
        {
            stringBuilder.Clear();
            stringBuilder.AppendLine("\n[> Base Status <]: " + (ElevatorReady ? "Ready!" : "Not Ready!"));
            stringBuilder.AppendLine("[> Platform Status <]: " + (CabinReady ? "Ready!" : "Not Found!"));
            stringBuilder.AppendLine("\n[Elevator Height]: " + ElevatorHeight + " blocks");
            stringBuilder.AppendLine("[Floors Count]: " + FloorsCount);
            if (FloorsCount < 2)
            {
                stringBuilder.AppendLine("\n[ Errors ]:" + "\nLess than the minimum 2 floors.");
                stringBuilder.AppendLine("\nElevator checks for new blocks \n every 10 seconds.");
            }
            if (!CabinReady) stringBuilder.AppendLine("\nTrying to add new platform.\nPlease wait...");
            stringBuilder.AppendLine("\nRequired power: 1.0MW");
        }
    }
}